package com.zanfeng.signleplatform.modules.token;

import com.zanfeng.signleplatform.api.service.modules.token.TokenService;
import com.zanfeng.signleplatform.common.auth.ApiTokenResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TokenHelper {

    @Resource
    private TokenService tokenService;

    private final static Logger logger = LoggerFactory.getLogger(TokenHelper.class);

    public ApiTokenResult checkToken(String tokenPrefix, String token) {
        return tokenService.checkToken(tokenPrefix, token);
    }
}
